<?php
if (! defined('IN_STUCLOUD') || ! defined('IN_ADMIN')) {
    die('访问受限');
}
if (! hasPermission("admin_general")) {
    errorMessage("你没有权限这样做。");
}
global $_G;
$op = isset($_G["admin"]["op"]) ? $_G["admin"]["op"] : "";
if ($op == "menu") {
    if (isAjaxRequest()) {
        die(json_encode(array(
            "state" => 1,
            "rootURL" => "admin.php?ajax=true&model=general&op=",
            "list" => array(
                "about" => "关于",
                "help" => "帮助",
                "general" => "总览"
            ),
            "main" => "general"
        )));
        return;
    }
}
if ($op == "general") {
    loadTemp("admin/models/member/add_op_temp.php", false);
    return;
}
if ($op == "help") {
    loadTemp("admin/models/general/help_op_temp.php", false);
}
if ($op == "total") {
    loadTemp("admin/models/general/total_op_temp.php", false);
}
?>